package unamur.iodass.communication.messages;



public class BookDeal extends Message{

	private long isbn;
	private int minimum;
	private int round;
	private BookStore bookStore;
	private String ipBookStoreHost;
	private int portBookStoreHost;
	
	
	
	public BookDeal(BookStore bookStore, long isbn, int minimum, 
			int round, String ipBookStoreHost, int portBookStoreHost) {
		this.bookStore = bookStore;
		this.isbn = isbn;
		this.minimum = minimum;
		this.round = round;
		this.ipBookStoreHost = ipBookStoreHost;
		this.portBookStoreHost = portBookStoreHost;
	}
	

	public long getIsbn() {
		return isbn;
	}


	public int getMinimum() {
		return minimum;
	}


	public int getRound() {
		return round;
	}


	public BookStore getBookStore() {
		return bookStore;
	}


	public String getIpBookStoreHost() {
		return ipBookStoreHost;
	}


	public int getPortBookStoreHost() {
		return portBookStoreHost;
	}





	public String toString() {
		return "isbn : " + this.isbn + "\tminimum : " + this.minimum + "\tround : " + this.round;
	}
	
	
}
